P4FL: An Architecture for Federating Learning With In-Network Processing