Unnecessary wars 'diverting energy and resources to killing rather than to sustainable development'