Few writers mined their own biography with such caustic flamboyance and mordantly gleeful disregard for opinion as Peter Nichols, who has died