Observation of B (s)0 →j/ψp p Decays and Precision Measurements of the B (s)0 Masses