Ed Sheeran to star in TV medieval epic