Taylor Swift 'threatened Kanye West with legal action months ago'