Micromechanical modelling of cyclic plasticity incorporating damage