What could cause persistent fluid in the lungs and swollen ankles?

CHF. It could be caused by congestive heart failure. This is something you need to get evaluated by a physician.
Congestive. Heart failure is one possibility. In either case - i hope you are seeing a doctor for tis.....