Women suffer more nightmares than men because they find it harder to switch off their emotions at the end of the day, research has found.