Caitlin Thwaites to retire at season's end