Justin Trudeau resigns after ten years as Canadian prime minister