Dimension reduction via timescale separation in stochastic dynamical systems