Models and finite element methods for porous media subjected to localized strains