Cosmological constraints on ghost-free bigravity: background dynamics and late-time acceleration