Institutions and public investment: an empirical analysis