India suffered a record 408-run defeat to South Africa, completing a 2-0 series whitewash and sparking widespread criticism.