US defence secretary Pete Hegseth has said Nato membership for Ukraine is an unrealistic prospect.