U.S. dollar, yen gain as Delta variant weighs on risk sentiment