UN fails to agree on ‘killer robot’ ban as nations pour billions into autonomous weapons research