World number two Rory McIlroy admits he found the last three rounds of the Open at Royal Lytham & St Annes "a struggle".