Hundreds of teacher vacancies have gone unfilled over the last three years, sparking fresh fears for recruitment into Scotland’s rural schools.