 Ford Motor said its chief executive, Jim Hackett, will retire Oct. 1, ending a three-year run in which the automaker has tried to streamline its operations and focus its business on electric cars, trucks and SUVs with mixed success. 