What did the British troops encounter as they retreated to Boston?