Keir Starmer resigns as UK prime minister