Harry receives ‘rap on the knuckles’ by judge in phone hacking court case