New bounds on millicharged particles from cosmology