Nonclassical correlations in non-Markovian continuous-variable systems