Complexity, Institutions and Economic Activity