Former prime minister Sir Keir announced he would quit as an MP on Tuesday as Parliament returned from its summer recess.