Gold prices have surged past $4,000 an ounce amid economic uncertainty and investor demand for safe-haven assets.