India defeated arch-rivals Pakistan by five wickets to go top in the Group A of Asia Cup 2022 points table.