A coupled finite element model for the consolidation of non-isothermal porous media