New Zealand beat India by 8 wickets in Hamilton