A statistical test of market efficiency based on information theory