Brain network modularity predicts cognitive flexibility