Electric cars emit significantly less greenhouse gases over their lifetimes than diesel engines even when they are powered by the most carbon intensive energy, a new report has found.