Why dogs put their tails between their legs: 'Apology bow' is inherited from wolf ancestors to avoid being shunned