Ed Sheeran &#x27;to perform on X Factor and Strictly Come Dancing finals&#x27;