Federated Learning with Flexible Control