Hershey has confirmed it has struck a deal to buy fellow US business Amplify Snack Brands for US$1.6bn.