Exchange traded funds (ETFs) have improved the efficiency of stock markets in the developed world, new research suggests.