Success of pro-Corbyn candidates marks clear shift to the left as party prepares in key marginals for possible snap election