Coherence of terahertz emission from photoexcited electron-hole plasma: Hydrodynamic model and Monte Carlo simulations