'Dark subhaloes' may explain why galaxies seem to form pre-determined shapes