UK Parliament Speaker John Bercow says he will stand down on 31 October 2019 or at next general election - whichever is soonest.