Hardness of parameter estimation in graphical models