Costs of entry and exit from financial markets and capital flows to Developing Countries