David Cameron has become the first foreign leader to visit Egypt since the fall of President Mubarak.