Local and global bifurcations in an economic growth model with endogenous labour supply and multiplicative external habits