Rexam has agreed to sell its speciality closures business in a bid to reduce debt.