The popular weight-loss company plans on shuttering hundreds of its weight-loss centers across the country and focus on growing its online business.