Machinery for the automatic production of brushes