When UAV Meets Federated Learning: Latency Minimization via Joint Trajectory Design and Resource Allocation