Memoirs of former Ripon mayor to raise money for charity