Foreign investors have been a big factor behind the recent rally in Japanese stocks