Total absorption $\gamma$-ray spectroscopy of the $\beta$ decays of $^{96\text{gs,m}}$Y