Investors have flocked to gold, which is generally perceived as a safe haven in times of turmoil.