Businesses gained confidence to recruit in June, figures show