Coherent soft X-ray pulses from an echo-enabled harmonic generation free-electron laser