Judge slams Ofwat and government for not attending Thames Water hearing