Health-related quality of life and psychological distress among adults in Tanzania: a cross-sectional study