Keir Starmer resigns as prime minister and leader of Labour Party