Charge density wave instabilities of type-II Weyl semimetals in a strong magnetic field