Turkish authorities are investigating people who allegedly insulted state officials or incited riots on social media, the deputy prime minister has said in a sign the government is intent on meting out punishment over the massive protests that have swept the country.