Efficiency and instabilities of financial markets