The nature of star formation in lensed galaxies at high redshift