Scotland records 7% rise in crime: Official data