Real Madrid secures top place in the group with win against Inter