Volvo has struck a deal with Microsoft that will see the two companies work together in developing driverless vehicles.