Percolation theory and its ramifications