I know that hazel (that's the same genus as the cob nut I think) is often used as the wood in guineapig gnaw sticks and cage furniture, so if the wood is harmless I wouldn't expect the leaves to be bad for them, however, I've never fed them myself so couldn't say with absolute certainty.