The UK unemployment rate fell to 4.0% in the three months ending June, the lowest since 1975, and beating estimates of 4.2%.