Solar water heater with heat pump