Former Prime Minister Gordon Brown has officially announced he will be stepping down as an MP at the next general election.