It seems that Hamlet doesn't act mad because he is angry. After looking a the original script, it seems that Hamlet acts mad so that his friends won't come over to him and say, "remember what the ghost said?" or some other slip that would let Claudius know that Hamlet knows he killed Hamlet's father. Correct me and please tell what I'm misinterpreting if I'm wrong.