I don't think you're meant to. We get away with tea & biscuits etc but I'm not sure about cake.
If you can be bothered, you can look on the US customs & immigration website (can't think what the dept is called at the moment but it's fairly easy to find.