Devices specially adapted for producing transverse or longitudinal seams in webs or tubes