Warm ice giant GJ 3470b - II. Revised planetary and stellar parameters from optical to near-infrared transit photometry