Water regulator Ofwat has launched an investigation into Thames Water over concerns it will not complete more than 100 environmental schemes funded by customers.