Argentina's Lionel Messi has broken the record for most appearances at the World Cup by playing in his 26th game in Sunday's final against France.