'Urgent action' needed: civil and criminal legal aid markets 'on the brink of collapse'