Boy, 12, who raped pupil, 9, wasn’t prosecuted due to botched school investigation