Taylor Swift's home intruder has been sentenced to six months in jail after he broke into her New York home last year.