VI-DGP: A variational inference method with deep generative prior for solving high-dimensional inverse problems