Boris Johnson has unveiled £2.5bn of funding for new prison places and given the go-ahead for more police use of stop-and-search powers as he vowed to "come down hard on crime".