Consistency of weighted majority votes