Canadian Prime Minister Justin Trudeau announced his resignation as Liberal Party leader ahead of a national caucus meeting.