(De)compaction of porous viscoelastoplastic media: Model formulation