Manufacturing output increases in July after three months of downturn