Quantum phase transition between cluster and antiferromagnetic states