Embattled Mohammed Morsi has been told by the army that he is no longer president of Egypt, state newspaper al-Ahram has reported.