Periodic solutions of third-order degenerate differential equations in vector-valued functional spaces