Royal visit from the Duke of Edinburgh marks 20th anniversary of education firm