UK foreign secretary expresses optimism over possible Gaza deal