Rate-independent dissipation in phase-field modelling of displacive transformations