Max Malins bagged two tries as Bristol Bears secured a bonus point win over Bath Rugby in the Gallagher Premiership.