Rory McIlroy's hopes of winning the Irish Open were ended after making a triple-bogey eight at the 16th hole in the final round.