Deliberate then Generate: Enhanced Prompting Framework for Text Generation