Water treatment in cooling cycles by membrane filtration plants