Fourier transform spectroscopy of the submillimetre continuum emission from hot molecular cores