Gold edges up as dollar retreats from 16-month high