Gold edges up as dollar drifts away from multi-month high