Applications of optimal stopping in behavioural finance