Cavity quantum networks for quantum information processing in decoherence-free subspace