Mondelez International has hammered out a deal with Cadbury staff that will see 200 jobs go at the UK chocolate business but "safeguard" the future of Bournville for 25 years.