Eight of the UK's major grocers have agreed to sign up to a set of "principles" on special offers and promotions on food and drink products.