Dollar rises from four-week low as U.S. stocks retreat