Dollar retreats as U.S. inflation surge comes in line with expectations