The dollar remained relatively calm while investors rushed into the safety of gold after British voters' decision to leave the EU.