Age and mass of solar twins constrained by lithium abundance