SOFT GLUON RESUMMATION FOR THE FRAGMENTATION OF LIGHT AND HEAVY QUARKS AT LARGE X