John Hunter Nemechek will drive No 42 for Legacy Motor Club in 2024 following Noah Gragson controversy