Functional diversity of ant-associated bacterial communities