Six major carmakers agree to phase out fossil-fuel vehicles by 2040, UK says