U.K. Prime Minister Theresa May on Friday announced her resignation, putting an end to months of speculation over her future because of her handling of Brexit.