Two- and three-body interactions in $$\varphi ^4$$φ4 theory from lattice simulations