Phenomenological Ginzburg-Landau-like theory for superconductivity in the cuprates