On the compaction of cohesive hyperelastic granules