An inspection of the police praised the way they record data about crime, but also found room for improvement