The impact of psychological flexibility on family dynamics amidst the COVID-19 pandemic: a longitudinal perspective