Companies won a record number of patents in 2019, with Microsoft, Apple and IBM leading the charge