On my soap box just for a minute, this is why I never use ledger boards to attach a deck to the house. I always keep them independant so one does not drag down another and there is the "inverabaly" leaking problem.
Ledgers always need special care in preventing water from leaking in the home via flashing and "Z" molding and flashing. If the flashing has been compromised or just not there, then the only way to fix this is to tear it out and start over in that specific area.
You HAVE to stop the leaking into the house and into the walls of the home. the home is the priority and the deck is second. If you rebuild the ledger and repair the damage to the house, make sure you have a pro attach the ledger and do it correctly. If you dont use the ledger then you can butt the deck up to the house and not compromise the outer shell of the house.