Gold edges up on sell-off in equities, weaker dollar