A new comprehensive set of elemental abundances in DLAs III. Star formation histories