Scottish officers have used an incapacitant spray more potent than tear gas on children as young as 12, the police watchdog has revealed.