A39 in Carhampton to close next month for flood improvement