Confidence among UK consumers in July dropped for the first time in six months, according to new figures.