Agreement dynamics on small-world networks