My first is in chocolate, but is not in ham, my second’s in cake and also in jam, my third at tea-time is easily found, my whole is a friend, who’s often around. What am I?

A cat.

Source: Riotous Riddles