Amazon has filed a patent for on-demand apparel production in a move that will see the online retail giant embed itself deeper into the apparel industry.