The Coalition says it will impose hefty penalties for burning the Australian flag and desecrating war memorials.