He quits as health secretary after days of speculation that he is preparing to launch a leadership challenge against Sir Keir Starmer.