Threatening letters urging people to carry out acid attacks against Muslims and bomb mosques are being investigated by counter-terror officers.