Latency Optimization for Wireless Federated Learning in Multihop Networks