Shoplifting slumped but assaults on police officers went up during a “unique year” for crime levels in Scotland.