The phase transition for the existence of the maximum likelihood estimate in high-dimensional logistic regression