MACTA: A Multi-agent Reinforcement Learning Approach for Cache Timing Attacks and Detection