A Survey of Text Watermarking in the Era of Large Language Models