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