Valves for reverse osmosis systems