Japanese investors sell $4 billion in foreign stocks on inflation fears