UK software firm Sage to cut over 800 jobs amid focus on investment