Amcor has reached a deal to acquire rival packaging company Berry Global Group in an $8.4 billion all-stock transaction.