Banks agree to share more branches in fight to save cash