Breakdown of the Wiedemann-Franz law in strongly-coupled electron-phonon system, application to the cuprates