Retired Irish army and United Nations soldiers, dressed in uniform, performed a guard of honour as Mr Hayes’s coffin.