Thames Water is at “real risk” of falling into administration within weeks, a former director has warned, as it nears a crucial court decision on a rescue funding package.