A study of consensus formation using kinetic theory