Democratic Alliance’s ability to form government will depend on nativist Chega or help from defeated Socialists