Gold ends up 1% to book best gain in 6 weeks as dollar slumps