Ford plans to invest $4.5 billion on electrified-vehicle technology over the next five years and more than triple the number of global nameplates it offers as a plug-in or hybrid, despite weak sales of such vehicles today.