NHS Scotland is treating fewer patients than before the pandemic despite boost to staff and funding