Barclays resumes dividend as annual profit halves