Resurgent Japanese currency forces speculators to shut down years’ worth of bets that could run into trillions of dollars