The maker of confectionery brands such as Oreo and Ritz will switch to entirely recyclable packaging in the next seven years.