A popping noise comes from somwhere in the car, it might be the air filter or exhaust. it happens after a rainy night or if im driving long distance in the rain. Not sure if water is going somewhere or if something is getting damp. But car shakes and theres loads of popping noise when I accelerate, eventually it stops after a long drive or quicker driving uphill where car tends to lose acceleration with loads of popping (as though whatever is popping is getting rid off trapped water, air or whatever it could be).

Anyone had this problem ad know how to resolve it?