A boy has hyperuricaemia, dystonia and compulsive self-mutilation. Deficiency of which enzyme is responsible?