Lloyds has agreed to review its internal processes and submit evidence to a public inquiry, following criticism over its handling of the HBOS fraud case.