Dynamical stripe correlations and the spin fluctuations in cuprate superconductors