Alastair Cook said it's been the most surreal four days of his life, as he hit a century in his final Test for England.