Tens of thousands of new homes blocked by failure to build wastewater capacity