The interplay between personalities and social interactions affects the cohesion of the group and the speed of aggregation