Sir Ivan Rogers’ sudden departure is a hit to Theresa May’s Brexit plans