US defence secretary Pete Hegseth has posted pictures of himself exercising with American marines in Germany ahead of his first NATO meeting this week.