David Cameron invokes UK war dead as he makes case for EU as guardian of peace