Real Madrid edged past Barcelona in the first El Clásico of the season as goals from Kylian Mbappé and Jude Bellingham helped them to a 2-1 victory.