Interplay between superconductivity and non-Fermi liquid at a quantum critical point in a metal. I. The γ model and its phase diagram at T=0 : The case 0