Cosmological constraint on light particles