Donald Trump has taken another swipe at Australia, accusing the key ally of not helping the United States in its conflict with Iran.