Text this: Adaptive federated learning for resource-constrained IoT devices through edge intelligence and multi-edge clustering