Male astronauts have been warned not to pleasure themselves on a spacecraft amid fears that floating semen could impregnate female colleagues in the zero-gravity environment.