Big bang archeology: WIMP capture by the earth at finite optical depth