There are two good options:
1) Rock head. You can Skill Swap rock head onto it, so that it will deal damage, but won't take recoil.
2) Ghost types. Ghost types are immune to take down, and will therefore prevent any recoil. Optionally, you could hold a Leppa Berry and trick beldum the Leppa Berry so it can never hit you, and then use recycle to get your berry back. I'm not sure if you can use recycle like that, but if you can then it's possible to create more berries to keep giving beldum so it has ininite pp.
Beware that both of these will eventually lead to it struggling to death, but hopefully you can catch it before then.
Please comment any other suggestions! Hope I helped!