Job vacancies grew at their fastest rate in 24 years in June – but so did staff shortages, research finds