More than three million tickets were issued at this year's Edinburgh Festival Fringe, with more residents from the city attending than ever