The compressive response of a titanium foam at low and high strain rates