A kinetic framework to study opinion dynamics in multi-agent systems