Functional connectivity by cross-correlation clustering