Which city did the British capture and occupy early in the American Revolution, making it the headquarters of both the Royal Navy and the British army?