US soft drinks producers have agreed to stop selling their full-calorie products in the country's schools in a bid to fight rising child obesity.