who beat one direction to win x factor