Egyptian court sentences ex-president Mohamed Morsi to three years in prison on charges of insulting the judiciary.