Canadian PM Justin Trudeau has resigned and will step down as leader of the governing Liberal Party after internal pressure and threats from Donald Trump.