China has announced a raft of measures to boost the country's economic growth and stimulate demand, citing "uncertainty", just days after trade tensions with the US threatened to escalate.