Phosphorus in the diffuse interstellar medium