Fusion Category Symmetry I: Anomaly In-Flow and Gapped Phases