Gold ends near 3-month low, suffers 1.8% weekly loss