An Arzela-Ascoli theorem for immersed submanifolds