Pakistan president dissolves parliament paving way for elections