A flood plan to protect homes in Marlow has been approved, while proposed new homes in Wycombe have been rejected.