gold settles at a nearly 6-month high as risky assets get rocked