Hamlet's tragic flaw

What is Hamlet's tragic flaw and how does it affect the play?