Stochastic control of hysteretic structural systems