Novak Djokovic beat Casper Ruud in straight sets at Roland Garros to win a record 23 grand slam titles.