Nationwide plans to spend $1.5 billion over the next three years on tech upgrades including AI and connected sensors.