Tensor decomposition of higher-order correlations by nonlinear Hebbian plasticity