The Prime Minister has celebrated Ramadan at what he called a “difficult time for Muslims in the UK” at an iftar event in Parliament.