Thames Water is being investigated over late delivery of environmental improvement schemes, the industry regulator has announced.