SRAP-Agent: Simulating and Optimizing Scarce Resource Allocation Policy with LLM-based Agent