Linear magnetochiral transport in tilted type-I and type-II Weyl semimetals