Tax overhaul leaves law firm futures under threat