Critical percolation on the Hamming graph