Learning Stable Manoeuvres in Quadruped Robots from Expert Demonstrations