The BBC can reveal insulation fitted under government schemes could have failed in hundreds of thousands of homes.