Shortfall comes despite savings being made by boards across Scotland