French President Emmanuel Macron has vowed to rebuild the medieval Cathedral of Notre-Dame after a major fire devastated the Paris landmark.