Majority-vote model for financial markets