Do I Know This Entity? Knowledge Awareness and Hallucinations in Language Models