gold posts 1% gain as haven demand returns