The leaders of the US and China agree to further talks aimed at reaching a deal amid an ongoing trade war.