Percolation transition in spin glasses