Myanmar's parliament elects Htin Kyaw, a close confidant of Nobel laureate Aung San Suu Kyi, as the new head of state.