Numerical modelling of transformation-induced damage and plasticity in metals