Shocks in nova outflows – I. Thermal emission