Wales came agonizingly close to shocking the All Blacks before a burst of late tries left them on the wrong end of a 34-16 score-line in an enthralling encounter in Cardiff.