FACT: Foundation Model for Assessing Cancer Tissue Margins with Mass Spectrometry