The imperious Virat Kohli helped India stay perfect at the World Cup with a four-wicket victory over New Zealand – but he did miss out on a historic century.