Modeling Relaxation Processes for Fluids in Porous Materials Using Dynamic Mean Field Theory: An Application to Partial Wetting