Production of $D^{(*)}\bar{D}^{(*)}$ near the thresholds in $e^{+}e^{-}$ annihilation