Metallica has announced its entire back catalogue is to be made available on music streaming service Spotify, ending a 12-year feud with Napster co-founder Sean Parker.