Softening water by precipitation of the hardness