Dynamical response of seismic metamaterials in presence of soil hysteresis