Existence of a weak solution for the semigeostrophic equation with integrable initial data