Egypt's ex-president Hosni Mubarak along with his two sons have been placed in detention for 15 days, prosecutors said.