Discovery of Water at High Spectral Resolution in the Atmosphere of 51 Peg b