The Scottish Qualifications Authority tells schools they must investigate malpractice and penalise candidates.