The MUSE Hubble Ultra Deep Field Survey. XIII. Spatially resolved spectral properties of Lyman haloes around star-forming galaxies at z > 3