The Scottish Police Federation, which represents the rank-and-file, said a reduction of officers in schools and communities means that “preventative” opportunities are being missed.