LONDON — One Direction, Katy Perry, The Killers and Elton John will appear on the finale of “The X Factor” in the U.K. One Direction will play the title track from their new album “Midnight Memories,”…