Rory McIlroy made a nightmare start to his Open Championship with a quadruple bogey on the opening hole at Royal Portrush.