US President gives speech on war on terror