Exact three-body local correlations for excited states of the 1D Bose gas