The cost of the maintenance backlog in Scotland’s NHS has risen to more than £1.3 billion, figures show.