China's President Xi Jinping has called for restraint from all parties over US-North Korea tensions during a telephone call with US President Donald Trump.