The ruling in the case of Dimond v Lovell could put pressure on providers of consumer credit, writes Hilary Heilbron