Volvo, in the face of competition from makers of electric vehicles such as Tesla, General Motors and Nissan, plans to go fully electric or hybrid, phasing out vehicles powered solely by the internal combustion engine.