Virat Kohli scored a brilliant century, his 43rd in ODIs, as India beat West Indies by six wickets in a rain-truncated affair to win series 2-0.