WeightWatchers, known for its diet programs once endorsed by celebrities including Oprah Winfrey, has filed for bankruptcy after struggling to compete with new weight-loss drugs like Ozempic.