Latham, Allen help New Zealand to consolation T20 win