The comedian and TV presenter on finding the confidence to write a novel after ‘bluffing it’ in TV for 30 years