MACD: Multi-Agent Clinical Diagnosis with Self-Learned Knowledge for LLM