Deep photometry of globular clusters. V: Age derivations and their implications for galactic evolution