THz pulse detection with picosecond time resolution by a YBa$_2$Cu$_3$O$_{7-\delta}$ thin-film detector