Boris Johnson resigned as British prime minister and the leader of the Conservative Party in a statement to the country on Thursday.