in more recent years he had retired from shanghai to london , had sold his trading ships , and had used the money to buy a large company that produced the mechanical devices needed to make timepieces , everything from pocket watches to grandfather clocks .