Crossover from quantum tunneling to classical hopping of domain walls in ferromagnets