Sharp phase transition theorems for hyperbolicity of random groups