High-fidelity two-qubit gates via dynamical decoupling of local 1/f noise at the optimal point