The retail giant plans to offer weight-loss programs that could prescribe drugs such as Wegovy and Ozempic to some customers.