China and the United States have agreed to a ceasefire in their bitter trade war after high-stakes talks in Argentina between US President Donald Trump and Chinese President Xi Jinping.