PinFM: Foundation Model for User Activity Sequences at a Billion-scale Visual Discovery Platform