A battle has broken out between two groups who own Thames Water debt, as they race to keep the company afloat.