A mesoscopic simulation of static and dynamic wetting using many-body dissipative particle dynamics