Connectivity and function are coupled across cognitive domains throughout the brain