Continuing in role would be a “distraction”, she tells Prime Minister Sir Keir Starmer