India collapsed to 201 all out on day three of the second Test, conceding a 288-run first-innings lead to South Africa.