A clean-up operation is underway after homes were flooded in counties Down and Tyrone.