Banks are increasingly exposed as high interest rates and slowing growth make it harder for companies and households to repay their debts.