India beat Australia by 20 runs to take an unassailable 3-1 lead in the five-match T20 cricket series.