Gold ends near 3-month low, down 1.8% for the week