Memory effects in a Markovian chain dephasing channel