The prime minister says he deplores threats to MPs, adding that “tempers need to come down” in Parliament.