A report from the Scottish Child Abuse Inquiry says the school focused on protecting its reputation and ignored complaints.