Foreign investors pull $4B out of Indian equity markets