Multi-line Herschel/HIFI observations of water reveal infall motions and chemical segregation around high-mass protostars