Behavioural phenotypes over the lifetime of a holometabolous insect