Compression-induced buckling of thin films bonded to viscous substrates: Uniform wrinkles vs localized ridges