gold boosted by safe-haven demand