“I intend to resign as party leader as prime minister, after the party selects its next leader through a robust, nationwide competitive process," Trudeau said