Removal of disinfection by-product precursors by ion exchange resins