How long do moth caterpillars stay in their cocoons