BlackBerry scraps $4.7 billion buyout plan, fires CEO, announces $1 billion investment instead