Magnetism and Photocatalytic Degradation of Organic Dyes Based on a New Metal Formate Framework