Gold prices hit six-month high after tumbling in 2022