Plane-strain deformation of an elastic material compressed in a rough rectangular cavity