A micro–macro model for clayey rocks with a plastic compressible porous matrix