Reducing budgets and more complex cases are putting pressure on Scotland's sheriff court system, Audit Scotland has reported.