A bifurcation problem with two-dimensional kernel via singularity theory