Arshdeep Singh led an inspired bowling attack to help India beat South Africa by seven wickets in the third T20 international as the hosts took a 2-1 lead in the five-match series.