British gymnast Max Whitlock, a three-time Olympic gold medalist, has withdrawn from the Commonwealth Games due to a hand injury sustained in training.