Donald Trump has said on a trip to Iraq that ISIS was a "very dominant group" before he was president but are "not so dominant anymore".