An upper limit on the stochastic gravitational-wave background of cosmological origin