Plant for the production of prefabricated joists