Foreign finance, wealth effects and economic development