Iran's Revolutionary Guards release US sailors held for entering its territorial waters in the Gulf, State TV says.