Local Regularity for the Harmonic Map and Yang-Mills Heat Flows