Learning in latent spaces improves the predictive accuracy of deep neural operators