A robot capable of sorting and folding clothes has been built by scientists in Glasgow, in a development which researchers hope will lead to the creation of a range of machines capable of carrying out household chores.