Five European snack makers have decided to sign up to a pledge to stop advertising junk food to children under the age of 12 throughout the EU.