Survey on Factuality in Large Language Models: Knowledge, Retrieval and Domain-Specificity