High-energy scatterings in infinite-derivative field theory and ghost-free gravity