Limits from the timing of pulsars on the cosmic gravitational wave background