gold rises first day in three as dollar weakens