Stellar populations in the CFHTLS. I. New constraints on the IMF at low mass