Yuri Gagarin's flight into space was hailed by the Soviet Union as a triumph for socialist science over capitalism. But the true story is much stranger.