Integrating Generative and Physics-Based Models for Ptychographic Imaging with Uncertainty Quantification