The Indian stock market has seen a massive selloff in recent weeks with foreign investors pulling out.