Frequency-dependent Switching Control for Disturbance Attenuation of Linear Systems