Dealing With Challenged IoT Networks in Hierarchical Federated Learning