Stochastic representation of a class of non-Markovian completely positive evolutions