Sarah Ferguson, the polemic Duchess of York, writes a book inspired by her life