Small to medium-sized enterprises are increasingly feeling the pinch of unpaid debts, with the average UK business writing off £40,000 a year.