South Wales Fire and Rescue Service (SWFRS) has seen a rise in staff absences due to mental health issues over the last three years.