Smoothness of densities for path-dependent SDEs under Hörmander's condition