Maggie O’Farrell’s literary novel explores the effect on the Bard, and his marriage, of the loss of his young son