Enhancing Privacy in Federated Learning via Early Exit