Charles spoke out at a ceremony to mark the 25th anniversary of the creation of the Scottish Parliament.