High-frequency dynamics and short-range order of liquid gallium from inelastic x-ray scattering under pressure