Efficiency drive curbs local authorities' spend on legal advice