Malaysian police have arrested seven men with links to the Islamic State militant group who were planning attacks on non-Muslim places of worship and other targets, authorities said on Saturday.