Ben Stokes traps Virat Kohli as England beat India by 31 runs