BlackBerry on the brink as new boss tries to reinvent smartphone firm