Justin Trudeau announces resignation as Canadian prime minister