It can take several weeks for a cockatiel to really start feeling safe in a new home. The behavior you've described indicates that your bird is afraid, so do what you can to show him that he is safe, and try to make him feel comfortable. Holding millet spray in your hand for him to eat can be a good way to make friends.