Police are investigating after eight children believed to have eaten sweets containing cannabis at a Sheffield school were taken to hospital.