The prime minister's announcement sets the stage for the party's first leadership election since 2013