Donald Trump has repeated his criticism of NATO after holding talks with the alliance's secretary general in Washington.