Robust optical clock transitions in trapped ions using dynamical decoupling