The Coca-Cola Co has promised not to advertise to under 12s as part of a global pledge to fight obesity.