Sgt Bowe Bergdahl, who was released after five years in Taliban captivity, faces life in prison if found guilty.