High-dimensional variable clustering based on sub-asymptotic maxima of a weakly dependent random process