Swansea winger Dyer hangs up his boots