Holders Wigan have been knocked out of the Challenge Cup after Hull FC mounted a stunning second-half comeback to claim a 26-22 victory.