Gold posts 12% monthly loss in Q2 as Fed repricing weighs