Stochastic three-mode models for mean and covariance structures