US dollar rises as global tech selloff fuels safe-haven demand