The National Audit Office warned town halls are becoming more focused on frontline services, while preventative measures are getting less cash.