Rohit Sharma scored a record five centuries in a single edition of the World Cup as India outclassed Sri Lanka by seven wickets.