Photon solid phases in driven arrays of nonlinearly coupled cavities