Wavelet-based clustering for mixed-effects functional models in high dimension