Diffusion Approximation of Non-Markovian Processes