Cosmological evolution of the rolling tachyon