The delay time distribution of supernovae from integral-field spectroscopy of nearby galaxies