Machines for both collating or gathering and permanently attaching together the sheets or signatures