Egypt’s military rulers have agreed to speed up presidential elections, a key demand of protesters packing Cairo’s Tahrir Square.