A court in Turkey jails Istanbul Mayor Ekrem Imamoglu pending trial on graft charges as protests sweep the country over his arrest.