Total correlations of the diagonal ensemble as a generic indicator for ergodicity breaking in quantum systems