AI-Mediated Communication Reshapes Social Structure in Opinion-Diverse Groups