Pret A Manger Ltd. swung to a loss after writing down the value of the British sandwich chain by more than half a billion pounds amid tough trading conditions and higher costs.