Turkish authorities are investigating people who allegedly insulted state officials or incited riots on social media, the deputy prime minister says.