Gold prices were on track for a sixth consecutive week of gains as escalating trade tensions between the US and China boosted demand for safe-haven assets.