New Zealand police have arrested a man and charged him with two counts of arson in connection with a fire at a Wellington hostel that killed at least six people.