Smriti: Graph-Based Persistent Memory for LLM Applications