Gold gains to settle at 3-month high as dollar softens