Sharing a bed with someone could temporarily reduce your brain power - at least if you are a man - Austrian scientists suggest.