The Coca-Cola Co, PepsiCo and Anheuser-Busch InBev have agreed to stop selling soda to schools in Brazil in an attempt to combat obesity-related diseases.