Gold edges up as weaker dollar spurs demand