The dollar touched a fresh four-year high, getting a tailwind from data showing higher U.S. growth in the second quarter.