Rory McIlroy claimed tough conditions at Royal Troon got the better of him during the opening round of the Open Championship.