A sub-arcsec localised fast radio burst with a significant host galaxy dispersion measure contribution