Relational Weight Optimization for Enhancing Team Performance in Multi-Agent Multi-Armed Bandits