Anatomy of the AGN in NGC 5548: VI. Long-term variability of the warm absorber