Lionel Messi has overtaken Cristiano Ronaldo's record for most goals scored in the Top 5 European leagues.