Commensurability Transition and Stripe Phases in the Ginzburg-Landau Theory