ReSum: Unlocking Long-Horizon Search Intelligence via Context Summarization