Pryce plays an author in the grip of steep mental decline in a production that transfers from the West End