Competition and cascades in the financial markets