Legal Institutions, Corporate Governance and Aggregate Activity: Theory and Evidence