Credit market competition and capital regulation