Star batsman Virat Kohli played a stellar knock, scoring an unbeaten 100 to guide India to a six-wicket victory over Pakistan in the Champions Trophy.