Central bank digital currency and flight to safety