A vanishing viscosity approach to quasistatic evolution in plasticity with softening