Improved temporal resolution in ultrafast electron diffraction measurements through THz compression and time-stamping