Electric-vehicle stocks have lost their charge in recent weeks, with Tesla shares down more than 23% over the past month.