Ministers have lined up insolvency practitioners to prepare for the potential collapse of Thames Water, Britain's biggest water utility.