After months of fighting dissent in his own party, Justin Trudeau has resigned as the Canadian prime minister, making way for election of a new Liberal Party leader