Japanese yen rebounds toward 161 after hitting 40-year lows