From some of the pictures that the German naval correspondent Lothar Gunther Bucheim took during his career it appears to be a real mix. However, I imagine most U-Boat crew members simply kept them on their head due to the limited personal space on a U-Boat. You really didn't have anywhere to hang or store it and sometimes you might have to go topside in a hurry.