Selena Gomez ended friendships for the sake of her mental health