Elasto-plastic consolidation under steady and cyclic loads