Banks' struggles in mortgage business linked to outdated technology