Investors are seizing on any sign that inflation has peaked as a reason to snap up beaten-down shares.