Extracting Generalizable Hierarchical Patterns Of Functional Connectivity In The Brain