Limits on neutral light scalar and pseudoscalar particles in a proton beam dump experiment