Eleven of the biggest food and beverage companies in the US have pledged to adopt fresh rules on advertising to children under the age of 12.