Amid a storm in global markets, currency havens such as the Japanese yen and Swiss franc strengthened