Gold ends at a more-than-2-week low as risky assets draw demand