Thames Water – the UK’s largest water company – was given the lowest one-star rating.