Elastodynamics with hysteretic damping