Major banks are engaged in a rearguard action to retain relationships with home loan customers, after the transformative rise of mortgage brokers.