Removable singularities for Yang-Mills connections in higher dimensions