A recent academic study found wide disparities in the prices that investors get when buying and selling stocks through a half dozen popular brokerages.