The profession is finding it harder to attract and retain staff — a key factor in the quality of inspections