UK Prime Minister Keir Starmer says spending on the military will be increased while funds for foreign aid will be cut.