Rowan Atkinson stands out as a schoolteacher hiding loneliness behind bonhomie in Richard Eyre's poignant production, Sarah Hemming writes