Rainbow Turán problems for paths and forests of stars