The principal of Prince Charles's old school, Gordonstoun, says rows over Brexit are a terrible example for the young.