Kenneth Cranham plays a man losing his grip on reality in this acutely painful portrait of dementia, says Dominic Cavendish