The Origins of Ultra-Diffuse Galaxies