My two-cent: although it's perfectly correct to say "I would not like...", it sounds like there is unnecessary stress on your refusal - after all, it was somebody's kind offer, is it not? I'd water it down a little, maybe "I'd rather not have a cake." Doesn't it sound more mellow?