Japanese investors exit foreign stocks at fastest pace in 5 years