The prime minister's voice broke as she said she would quit as leader of the Conservatives on 7 June.