How should I stick acoustic foams on the walls?
Spray adhesive the panels on sheets of plywood and hang them like pictures
. 
This is a great video, it's about home made sound absorption panels but there is a lot of useful information in it. 

Watch "Anechoic Chamber - DIY Sound Absorption Panels" on YouTube
https://youtu.be/fqodnHxRJ7c