Prime Minister Theresa May has said there must be a "major national investigation" into the use of potentially flammable cladding on high-rise towers across the country over a period of decades.