FARM: Functional Group-Aware Representations for Small Molecules