Linear quantum state diffusion for non-Markovian open quantum systems