Spain has agreed to commission an independent audit of its financial system, trying to dispel market concerns that a state-funded bank bailout, set to be approved by the cabinet, could strain public finances to breaking point.