SunTrust will close 40 branches to cut costs