The Mexico president has vowed to seek a negotiated solution with Donald Trump on tariffs.