A kinetic model of the dynamics of compromise in large multi-agent systems