Periodic solutions of functional differential equations