The UK's biggest water supplier confirmed it has agreed a loan with its creditors to help it survive for at least a year following fears that it would run out of cash by Christmas.