Thousands of children trapped as Law Society calls for investment in family courts