Switching of anisotropy and phase diagram of a Heisenberg square lattice S=1/2 antiferromagnet Cu(pz)2(ClO4)2