Structural transition, metallization and superconductivity in quasi 2D layered PdS$_2$ under compression