Consensus formation in multi-state majority and plurality models