Six confectioners, including Jelly Belly and Lindt & Sprungli's Ghirardelli, have pledged not to advertise confectionery to children in the US.