Hierarchical clustering to measure connectivity in fMRI resting-state data