Lionel Messi announces he is to retire from international football after Chile beat Argentina 4-2 on penalties in the Copa America final.