Quantum capacity of dephasing channels with memory