FinMem: A Performance-Enhanced LLM Trading Agent with Layered Memory and Character Design