Finite deformation theory of hierarchically arranged porous solids—I. Balance of mass and momentum