High‐temperature ferroelectricity and strong magnetoelectric effects in a hybrid organic–inorganic perovskite framework